package com.m1book.domain.user;

import org.springframework.security.core.GrantedAuthority;

public class MiserRole implements GrantedAuthority {
	private static final long serialVersionUID = 144745847199180045L;
	
	public static final String MEMBER = "member";
	public static final String ADMIN = "admin";
	
	
	private String role;
	
	public MiserRole(String role) {
		this.role = role;
	}

	public String getRole() {
		return role;
	}

	@Override
	public String getAuthority() {
		return role;
	}
	
}
